package br.ufmg.dcc.paa.util;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.LinkedList;
import java.util.List;

public class Util {

	public static List<String> readFromFile(String fileName) throws IOException {
		List<String> lines = new LinkedList<String>();
		BufferedReader file = new BufferedReader(new FileReader(new File(fileName)));
		while (file.ready()) {
			lines.add(file.readLine());
		}
		file.close();
		return lines;
	}
	
}
